<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"9847217250001_C040193R144_0","x":-79.900002,"y":-101.000000,"z":-480.000000,"width":72.000000,"height":58.000000,"length":232.000000,"weight":207.866592,"platform":"platform07","order":1,"material":"","type":1,"place":100},{"boxId":"9847216950001_4580192G150-1_0","x":-79.900002,"y":-43.000000,"z":-480.000000,"width":72.000000,"height":58.000000,"length":232.000000,"weight":202.000000,"platform":"platform07","order":2,"material":"","type":1,"place":100},{"boxId":"9850100910001_05001017275P0400500-2_0","x":-81.900002,"y":16.000000,"z":-477.000000,"width":68.000000,"height":60.000000,"length":238.000000,"weight":103.000000,"platform":"platform07","order":3,"material":"","type":1,"place":100},{"boxId":"9848141590001_5660192C816P0400700_1","x":-85.900002,"y":67.000000,"z":-556.000000,"width":60.000000,"height":42.000000,"length":80.000000,"weight":35.500000,"platform":"platform07","order":4,"material":"","type":1,"place":100},{"boxId":"9848141590001_5660192C816P0400700_0","x":-85.900002,"y":67.000000,"z":-476.000000,"width":60.000000,"height":42.000000,"length":80.000000,"weight":35.500000,"platform":"platform07","order":5,"material":"","type":1,"place":100},{"boxId":"9848164060001_5660192C816P0400700_1","x":-85.900002,"y":109.000000,"z":-556.000000,"width":60.000000,"height":42.000000,"length":80.000000,"weight":35.500000,"platform":"platform07","order":6,"material":"","type":1,"place":100},{"boxId":"9848164060001_5660192C816P0400700_0","x":-85.900002,"y":109.000000,"z":-476.000000,"width":60.000000,"height":42.000000,"length":80.000000,"weight":35.500000,"platform":"platform07","order":7,"material":"","type":1,"place":100},{"boxId":"9850118580001_2500191L842P0400503-1_0","x":-87.900002,"y":75.250000,"z":-392.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":25.000000,"platform":"platform07","order":8,"material":"","type":1,"place":100},{"boxId":"9847216950001_8040100M763P0400500-2_0","x":-83.400002,"y":113.250000,"z":-407.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":7.880000,"platform":"platform07","order":9,"material":"","type":1,"place":200},{"boxId":"9850100910001_7780100Z846P0400700-3_0","x":-97.150002,"y":116.250000,"z":-360.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":4.750000,"platform":"platform07","order":10,"material":"","type":1,"place":200},{"boxId":"9851052310001_36001021024P0400700_1","x":2.100000,"y":-77.500000,"z":-550.000000,"width":92.000000,"height":105.000000,"length":92.000000,"weight":180.000000,"platform":"platform07","order":11,"material":"","type":1,"place":100},{"boxId":"9851052310001_36001021024P0400700_0","x":2.100000,"y":27.500000,"z":-550.000000,"width":92.000000,"height":105.000000,"length":92.000000,"weight":180.000000,"platform":"platform07","order":12,"material":"","type":1,"place":100},{"boxId":"9847594630001_1700101A166P0400500-1_0","x":0.100000,"y":104.750000,"z":-554.000000,"width":84.000000,"height":49.500000,"length":88.000000,"weight":33.000000,"platform":"platform07","order":13,"material":"","type":1,"place":200},{"boxId":"9847216980001_2500191L843P0400503-1_0","x":76.099998,"y":-100.750000,"z":-552.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":24.500000,"platform":"platform07","order":14,"material":"","type":1,"place":100},{"boxId":"9847222040001_2500191L843P0400503-1_0","x":76.099998,"y":-42.250000,"z":-552.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":24.500000,"platform":"platform07","order":15,"material":"","type":1,"place":100},{"boxId":"9847222040001_0560100F055P0400500-2_0","x":68.349998,"y":6.250000,"z":-556.750000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":10.560000,"platform":"platform07","order":16,"material":"","type":1,"place":100},{"boxId":"9847217250001_0560100F055P0400500-2_0","x":68.349998,"y":44.750000,"z":-556.750000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":10.560000,"platform":"platform07","order":17,"material":"","type":1,"place":100},{"boxId":"9847594630001_C26019ME033P0500800-2_0","x":68.349998,"y":83.250000,"z":-556.750000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":8.800000,"platform":"platform07","order":18,"material":"","type":1,"place":100},{"boxId":"9850118580001_4460190L911P0400500-1_0","x":68.599998,"y":111.000000,"z":-575.500000,"width":41.000000,"height":17.000000,"length":41.000000,"weight":41.799999,"platform":"platform07","order":19,"material":"","type":1,"place":100},{"boxId":"9847222040001_3920101H708P0400500-6_0","x":67.349998,"y":124.500000,"z":-578.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.082500,"platform":"platform07","order":20,"material":"","type":1,"place":200},{"boxId":"9847217250001_3920101H708P0400500-5_0","x":67.349998,"y":107.500000,"z":-537.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.082500,"platform":"platform07","order":21,"material":"","type":1,"place":200},{"boxId":"9847594630001_3920101H708P0400500-8_0","x":67.349998,"y":117.500000,"z":-537.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.082500,"platform":"platform07","order":22,"material":"","type":1,"place":200},{"boxId":"9852605400001_78801010368_1","x":-4.400000,"y":-112.500000,"z":-469.000000,"width":70.000000,"height":35.000000,"length":79.000000,"weight":10.200000,"platform":"platform07","order":23,"material":"","type":1,"place":200},{"boxId":"9852605400001_78801010368_0","x":-4.400000,"y":-77.500000,"z":-469.000000,"width":70.000000,"height":35.000000,"length":79.000000,"weight":10.200000,"platform":"platform07","order":24,"material":"","type":1,"place":200},{"boxId":"9852604960001_78801010329_1","x":-4.400000,"y":-42.500000,"z":-469.000000,"width":70.000000,"height":35.000000,"length":79.000000,"weight":10.200000,"platform":"platform07","order":25,"material":"","type":1,"place":200},{"boxId":"9852604960001_78801010329_0","x":-4.400000,"y":-7.500000,"z":-469.000000,"width":70.000000,"height":35.000000,"length":79.000000,"weight":10.200000,"platform":"platform07","order":26,"material":"","type":1,"place":200},{"boxId":"9847216980001_8040100M763P0400500-2_0","x":-11.400000,"y":18.750000,"z":-475.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":7.880000,"platform":"platform07","order":27,"material":"","type":1,"place":200},{"boxId":"9847217250001_8040100M763P0400500-2_0","x":-11.400000,"y":36.250000,"z":-475.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":7.880000,"platform":"platform07","order":28,"material":"","type":1,"place":200},{"boxId":"9847594630001_8040100M763P0400500-2_0","x":-11.400000,"y":53.750000,"z":-475.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":7.880000,"platform":"platform07","order":29,"material":"","type":1,"place":200},{"boxId":"9850118580001_8040100M761P0400500-2_0","x":-11.400000,"y":71.250000,"z":-475.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":7.880000,"platform":"platform07","order":30,"material":"","type":1,"place":200},{"boxId":"9848402690004_6820190M403P0400500_0","x":-21.650000,"y":101.599998,"z":-473.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":26.500000,"platform":"platform07","order":31,"material":"","type":1,"place":100},{"boxId":"9847594630001_00J69207027021704070-6_0","x":13.350000,"y":84.750000,"z":-486.750000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":0.750000,"platform":"platform07","order":32,"material":"","type":1,"place":100},{"boxId":"9847216950001_7810102Q937P0400700-6_0","x":14.700000,"y":105.750000,"z":-485.399994,"width":28.200001,"height":32.500000,"length":37.200001,"weight":2.780000,"platform":"platform07","order":33,"material":"","type":1,"place":100},{"boxId":"9847216980001_6420100F236P0400700-2_0","x":62.200001,"y":-111.000000,"z":-461.899994,"width":54.200001,"height":38.000000,"length":84.199997,"weight":8.100000,"platform":"platform07","order":34,"material":"","type":1,"place":100},{"boxId":"9850118580001_6420100F236P0400700-2_0","x":62.200001,"y":-73.000000,"z":-461.899994,"width":54.200001,"height":38.000000,"length":84.199997,"weight":8.100000,"platform":"platform07","order":35,"material":"","type":1,"place":100},{"boxId":"9847594630001_2760101D943P0400500-3_0","x":55.099998,"y":-36.250000,"z":-474.000000,"width":40.000000,"height":35.500000,"length":60.000000,"weight":5.720000,"platform":"platform07","order":36,"material":"","type":1,"place":100},{"boxId":"9850118580001_2760101D943P0400500-3_0","x":55.099998,"y":-0.750000,"z":-474.000000,"width":40.000000,"height":35.500000,"length":60.000000,"weight":5.720000,"platform":"platform07","order":37,"material":"","type":1,"place":100},{"boxId":"9847594630001_0310190L451P0400500-3_0","x":59.599998,"y":39.500000,"z":-485.500000,"width":37.000000,"height":45.000000,"length":49.000000,"weight":20.000000,"platform":"platform07","order":38,"material":"","type":1,"place":200},{"boxId":"9847216950001_00J69207027460340648-4_0","x":61.349998,"y":78.750000,"z":-482.500000,"width":43.000000,"height":33.500000,"length":52.500000,"weight":7.080000,"platform":"platform07","order":39,"material":"","type":1,"place":200},{"boxId":"9847216980001_7810102Q937P0400700-4_0","x":53.700001,"y":111.750000,"z":-489.899994,"width":28.200001,"height":32.500000,"length":37.200001,"weight":2.780000,"platform":"platform07","order":40,"material":"","type":1,"place":200},{"boxId":"9850118580001_7810102Q937P0400700-4_0","x":53.700001,"y":-37.750000,"z":-429.899994,"width":28.200001,"height":32.500000,"length":37.200001,"weight":2.780000,"platform":"platform07","order":41,"material":"","type":1,"place":200},{"boxId":"9847222040001_C280191K002P0500701-8_0","x":53.849998,"y":-16.750000,"z":-432.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.780000,"platform":"platform07","order":42,"material":"","type":1,"place":200},{"boxId":"9847216980001_00I69207027350586138-4_0","x":53.849998,"y":-7.250000,"z":-432.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.480000,"platform":"platform07","order":43,"material":"","type":1,"place":200},{"boxId":"9847222040001_00J69207027210718293-7_0","x":53.849998,"y":2.250000,"z":-432.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.480000,"platform":"platform07","order":44,"material":"","type":1,"place":200},{"boxId":"9847216950001_27601910165P0400500-7_0","x":-24.900000,"y":-112.250000,"z":-389.299988,"width":38.000000,"height":35.500000,"length":53.000000,"weight":4.340000,"platform":"platform07","order":45,"material":"","type":1,"place":100},{"boxId":"9851052310001_36001021022P0400700_0","x":-69.900002,"y":-99.500000,"z":-296.500000,"width":92.000000,"height":61.000000,"length":92.000000,"weight":99.500000,"platform":"platform07","order":46,"material":"","type":1,"place":100},{"boxId":"9847594630001_4170100F671P0400500-4_0","x":-102.150002,"y":-118.000000,"z":-116.750000,"width":27.500000,"height":24.000000,"length":267.500000,"weight":34.000000,"platform":"platform07","order":47,"material":"","type":1,"place":100},{"boxId":"9848402690004_6820190M406P0400500_0","x":-69.849998,"y":-122.400002,"z":-137.850006,"width":37.099998,"height":15.200000,"length":225.300003,"weight":16.500000,"platform":"platform07","order":48,"material":"","type":1,"place":100},{"boxId":"9848141830003_7620190H714P0400500-2_0","x":-71.900002,"y":-24.250000,"z":-303.500000,"width":78.000000,"height":89.500000,"length":88.000000,"weight":54.000000,"platform":"platform09","order":49,"material":"","type":1,"place":200},{"boxId":"9848154260002_3880100G130P0400500-1_0","x":-77.400002,"y":52.000000,"z":-304.000000,"width":77.000000,"height":63.000000,"length":77.000000,"weight":45.500000,"platform":"platform09","order":50,"material":"","type":1,"place":100},{"boxId":"9852523090001_3680190N562_0","x":-76.400002,"y":101.000000,"z":-307.500000,"width":70.000000,"height":35.000000,"length":79.000000,"weight":12.500000,"platform":"platform09","order":51,"material":"","type":1,"place":200},{"boxId":"9848164060002_5080190M855P0400500-1_0","x":36.099998,"y":-78.800003,"z":-302.500000,"width":80.000000,"height":102.400002,"length":120.000000,"weight":116.000000,"platform":"platform09","order":52,"material":"","type":1,"place":200},{"boxId":"9850100910001_07201012928P0400500-1_0","x":36.099998,"y":10.150000,"z":-302.500000,"width":80.000000,"height":75.500000,"length":120.000000,"weight":117.000000,"platform":"platform09","order":53,"material":"","type":1,"place":200},{"boxId":"9850402240001_0770100F608_0","x":33.349998,"y":83.900002,"z":-304.000000,"width":77.000000,"height":72.000000,"length":114.500000,"weight":176.173004,"platform":"platform09","order":54,"material":"","type":1,"place":200},{"boxId":"9847217250001_4170100F671P0400500-3_0","x":-102.150002,"y":-94.000000,"z":-116.750000,"width":27.500000,"height":24.000000,"length":267.500000,"weight":34.000000,"platform":"platform09","order":55,"material":"","type":1,"place":100},{"boxId":"9850118580001_4170100F675P0400500-3_0","x":-102.150002,"y":-70.000000,"z":-116.750000,"width":27.500000,"height":24.000000,"length":267.500000,"weight":33.500000,"platform":"platform09","order":56,"material":"","type":1,"place":100},{"boxId":"9850100910001_3680100Q459_0","x":-15.300000,"y":-68.000000,"z":-134.500000,"width":72.000000,"height":124.000000,"length":232.000000,"weight":565.296021,"platform":"platform09","order":57,"material":"","type":1,"place":100},{"boxId":"9848402690004_6820190M042_0","x":-15.300000,"y":21.000000,"z":-134.500000,"width":72.000000,"height":54.000000,"length":232.000000,"weight":105.000000,"platform":"platform09","order":58,"material":"","type":1,"place":100},{"boxId":"9848402690003_6820190M042_0","x":-15.300000,"y":75.000000,"z":-134.500000,"width":72.000000,"height":54.000000,"length":232.000000,"weight":105.000000,"platform":"platform09","order":59,"material":"","type":1,"place":100},{"boxId":"9848402690002_6820190M042_0","x":56.700001,"y":-103.000000,"z":-146.500000,"width":72.000000,"height":54.000000,"length":232.000000,"weight":105.000000,"platform":"platform09","order":60,"material":"","type":1,"place":100},{"boxId":"9848141830004_6430105A054-2_0","x":60.700001,"y":-51.750000,"z":-202.500000,"width":80.000000,"height":48.500000,"length":120.000000,"weight":46.200001,"platform":"platform09","order":61,"material":"","type":1,"place":100},{"boxId":"9848164460002_0500100U980P0400700-2_0","x":-39.400002,"y":-100.300003,"z":61.000000,"width":88.000000,"height":59.400002,"length":153.000000,"weight":69.500000,"platform":"platform09","order":62,"material":"","type":1,"place":200},{"boxId":"9848239890001_00J69207027210205090-1_0","x":-70.400002,"y":126.000000,"z":-407.000000,"width":16.000000,"height":8.000000,"length":58.000000,"weight":3.200000,"platform":"platform04","order":63,"material":"","type":1,"place":100},{"boxId":"9834090010002_7840T805758J00-5_0","x":-96.650002,"y":123.500000,"z":-324.750000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":3.660000,"platform":"platform04","order":64,"material":"","type":1,"place":200},{"boxId":"9834090010002_C00019YM008P0500801-4_0","x":-60.150002,"y":123.250000,"z":-329.750000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":0.500000,"platform":"platform04","order":65,"material":"","type":1,"place":200},{"boxId":"9848239890002_00J69207027210205090-1_0","x":-86.900002,"y":122.500000,"z":-299.000000,"width":16.000000,"height":8.000000,"length":58.000000,"weight":3.200000,"platform":"platform04","order":66,"material":"","type":1,"place":200},{"boxId":"9848239890001_C220194J552P0500700-2_0","x":-47.000000,"y":123.099998,"z":-308.350006,"width":17.299999,"height":9.200000,"length":21.799999,"weight":0.400000,"platform":"platform04","order":67,"material":"","type":1,"place":200},{"boxId":"9848239890002_C220194J552P0500700-2_0","x":-107.250000,"y":123.099998,"z":-280.100006,"width":17.299999,"height":9.200000,"length":21.799999,"weight":0.400000,"platform":"platform04","order":68,"material":"","type":1,"place":100},{"boxId":"9848239890002_00J69207027310198900_0","x":-21.799999,"y":115.000000,"z":-211.000000,"width":59.000000,"height":26.000000,"length":79.000000,"weight":15.784000,"platform":"platform04","order":69,"material":"","type":1,"place":100},{"boxId":"9848239890001_484B9041082_0","x":-21.799999,"y":115.000000,"z":-132.000000,"width":59.000000,"height":26.000000,"length":79.000000,"weight":13.714000,"platform":"platform04","order":70,"material":"","type":1,"place":100},{"boxId":"9852516320001_2460102F657P0400700-1_0","x":-32.549999,"y":113.750000,"z":-74.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":3.160000,"platform":"platform04","order":71,"material":"","type":1,"place":200},{"boxId":"9852516320002_2460102F657P0400700-1_0","x":-32.549999,"y":113.750000,"z":-37.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":3.160000,"platform":"platform04","order":72,"material":"","type":1,"place":200},{"boxId":"9834089920002_C00019VV765P0500800-5_0","x":4.950000,"y":113.750000,"z":-74.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":1.810000,"platform":"platform04","order":73,"material":"","type":1,"place":200},{"boxId":"9834089920003_7100101A140P0400500-3_0","x":4.950000,"y":113.750000,"z":-37.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":1.060000,"platform":"platform04","order":74,"material":"","type":1,"place":200},{"boxId":"9851871900054_7790100N372_0","x":54.700001,"y":-11.250000,"z":-211.250000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":75,"material":"","type":1,"place":100},{"boxId":"9851871900027_7790100N372_0","x":54.700001,"y":21.250000,"z":-211.250000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":76,"material":"","type":1,"place":100},{"boxId":"9851871900025_7790100N372_0","x":54.700001,"y":53.750000,"z":-211.250000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":77,"material":"","type":1,"place":100},{"boxId":"9851871900019_7790100N372_0","x":54.700001,"y":86.250000,"z":-211.250000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":78,"material":"","type":1,"place":100},{"boxId":"9834089920002_00I69207027290012632-6_0","x":42.450001,"y":111.250000,"z":-244.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":5.600000,"platform":"platform04","order":79,"material":"","type":1,"place":200},{"boxId":"9834090010002_C26010LX932P0500800-1_0","x":70.599998,"y":-27.500000,"z":-89.500000,"width":67.000000,"height":97.000000,"length":106.000000,"weight":153.000000,"platform":"platform04","order":80,"material":"","type":1,"place":100},{"boxId":"9851871900035_7790100P752_0","x":70.599998,"y":48.250000,"z":-89.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":81,"material":"","type":1,"place":100},{"boxId":"9851871900087_7790100P752_0","x":70.599998,"y":102.750000,"z":-89.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":82,"material":"","type":1,"place":100},{"boxId":"9834089920002_C26010LX932P0500800-1_0","x":-62.900002,"y":-22.100000,"z":50.500000,"width":67.000000,"height":97.000000,"length":106.000000,"weight":153.000000,"platform":"platform04","order":83,"material":"","type":1,"place":200},{"boxId":"9834089920002_C26010LX932P0500800-2_1","x":-62.900002,"y":74.900002,"z":50.500000,"width":67.000000,"height":97.000000,"length":106.000000,"weight":153.000000,"platform":"platform04","order":84,"material":"","type":1,"place":200},{"boxId":"9850401690002_C000109K788P0500802-1_0","x":19.100000,"y":-41.599998,"z":45.250000,"width":56.500000,"height":58.000000,"length":58.000000,"weight":18.799999,"platform":"platform04","order":85,"material":"","type":1,"place":200},{"boxId":"9850401690008_C000109K788P0500802-1_0","x":19.100000,"y":16.400000,"z":45.250000,"width":56.500000,"height":58.000000,"length":58.000000,"weight":18.799999,"platform":"platform04","order":86,"material":"","type":1,"place":200},{"boxId":"9850401690006_C000109K788P0500802-1_0","x":19.100000,"y":74.400002,"z":45.250000,"width":56.500000,"height":58.000000,"length":58.000000,"weight":18.799999,"platform":"platform04","order":87,"material":"","type":1,"place":200},{"boxId":"9851871900039_7790100N372_0","x":79.099998,"y":-113.750000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":88,"material":"","type":1,"place":100},{"boxId":"9851871900075_7790100N372_0","x":79.099998,"y":-81.250000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":89,"material":"","type":1,"place":100},{"boxId":"9851871900055_7790100N372_0","x":79.099998,"y":-48.750000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":90,"material":"","type":1,"place":100},{"boxId":"9851871900026_7790100N372_0","x":79.099998,"y":-16.250000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":91,"material":"","type":1,"place":100},{"boxId":"9851871900024_7790100N372_0","x":79.099998,"y":16.250000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":92,"material":"","type":1,"place":100},{"boxId":"9851871900079_7790100N372_0","x":79.099998,"y":48.750000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":93,"material":"","type":1,"place":100},{"boxId":"9851873280087_7790100N372_0","x":79.099998,"y":81.250000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":94,"material":"","type":1,"place":100},{"boxId":"9851873280085_7790100N372_0","x":79.099998,"y":113.750000,"z":32.750000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":95,"material":"","type":1,"place":100},{"boxId":"9851871900071_7790100P752_0","x":-62.900002,"y":-102.750000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":96,"material":"","type":1,"place":200},{"boxId":"9851871900011_7790100P752_0","x":43.099998,"y":-102.750000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":97,"material":"","type":1,"place":200},{"boxId":"9851871900052_7790100P752_0","x":-62.900002,"y":-102.750000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":98,"material":"","type":1,"place":200},{"boxId":"9851871900059_7790100P752_0","x":43.099998,"y":-102.750000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":99,"material":"","type":1,"place":200},{"boxId":"9851871900009_7790100P752_0","x":-62.900002,"y":-102.750000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":100,"material":"","type":1,"place":200},{"boxId":"9851871900044_7790100P752_0","x":43.099998,"y":-102.750000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":101,"material":"","type":1,"place":200},{"boxId":"9851871900017_7790100P752_0","x":-62.900002,"y":-102.750000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":102,"material":"","type":1,"place":200},{"boxId":"9851871900008_7790100P752_0","x":43.099998,"y":-102.750000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":103,"material":"","type":1,"place":200},{"boxId":"9851871900007_7790100P752_0","x":-62.900002,"y":-102.750000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":104,"material":"","type":1,"place":200},{"boxId":"9851871900081_7790100P752_0","x":43.099998,"y":-102.750000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":105,"material":"","type":1,"place":200},{"boxId":"9851871900012_7790100P752_0","x":-62.900002,"y":-102.750000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":106,"material":"","type":1,"place":200},{"boxId":"9851871900066_7790100P752_0","x":43.099998,"y":-102.750000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":107,"material":"","type":1,"place":200},{"boxId":"9851871900036_7790100P752_0","x":-62.900002,"y":-102.750000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":108,"material":"","type":1,"place":200},{"boxId":"9851871900064_7790100P752_0","x":43.099998,"y":-102.750000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":109,"material":"","type":1,"place":200},{"boxId":"9851871900093_7790100P752_0","x":-62.900002,"y":-48.250000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":110,"material":"","type":1,"place":200},{"boxId":"9851871900031_7790100P752_0","x":43.099998,"y":-48.250000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":111,"material":"","type":1,"place":200},{"boxId":"9851871900061_7790100P752_0","x":-62.900002,"y":-48.250000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":112,"material":"","type":1,"place":200},{"boxId":"9851871900078_7790100P752_0","x":43.099998,"y":-48.250000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":113,"material":"","type":1,"place":200},{"boxId":"9851871900084_7790100P752_0","x":-62.900002,"y":-48.250000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":114,"material":"","type":1,"place":200},{"boxId":"9851871900088_7790100P752_0","x":43.099998,"y":-48.250000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":115,"material":"","type":1,"place":200},{"boxId":"9851871900037_7790100P752_0","x":-62.900002,"y":-48.250000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":116,"material":"","type":1,"place":200},{"boxId":"9851871900040_7790100P752_0","x":43.099998,"y":-48.250000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":117,"material":"","type":1,"place":200},{"boxId":"9851871900015_7790100P752_0","x":-62.900002,"y":-48.250000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":118,"material":"","type":1,"place":200},{"boxId":"9851871900001_7790100P752_0","x":43.099998,"y":-48.250000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":119,"material":"","type":1,"place":200},{"boxId":"9851871900069_7790100P752_0","x":-62.900002,"y":-48.250000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":120,"material":"","type":1,"place":200},{"boxId":"9851871900034_7790100P752_0","x":43.099998,"y":-48.250000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":121,"material":"","type":1,"place":200},{"boxId":"9851871900056_7790100P752_0","x":-62.900002,"y":-48.250000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":122,"material":"","type":1,"place":200},{"boxId":"9851871900076_7790100P752_0","x":43.099998,"y":-48.250000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":123,"material":"","type":1,"place":200},{"boxId":"9851871900073_7790100P752_0","x":-62.900002,"y":6.250000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":124,"material":"","type":1,"place":200},{"boxId":"9851871900085_7790100P752_0","x":43.099998,"y":6.250000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":125,"material":"","type":1,"place":200},{"boxId":"9851871900067_7790100P752_0","x":-62.900002,"y":6.250000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":126,"material":"","type":1,"place":200},{"boxId":"9851871900082_7790100P752_0","x":43.099998,"y":6.250000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":127,"material":"","type":1,"place":200},{"boxId":"9851871900030_7790100P752_0","x":-62.900002,"y":6.250000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":128,"material":"","type":1,"place":200},{"boxId":"9851871900013_7790100P752_0","x":43.099998,"y":6.250000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":129,"material":"","type":1,"place":200},{"boxId":"9851871900089_7790100P752_0","x":-62.900002,"y":6.250000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":130,"material":"","type":1,"place":200},{"boxId":"9851871900086_7790100P752_0","x":43.099998,"y":6.250000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":131,"material":"","type":1,"place":200},{"boxId":"9851871900080_7790100P752_0","x":-62.900002,"y":6.250000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":132,"material":"","type":1,"place":200},{"boxId":"9851871900058_7790100P752_0","x":43.099998,"y":6.250000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":133,"material":"","type":1,"place":200},{"boxId":"9851871900020_7790100P752_0","x":-62.900002,"y":6.250000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":134,"material":"","type":1,"place":200},{"boxId":"9851871900016_7790100P752_0","x":43.099998,"y":6.250000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":135,"material":"","type":1,"place":200},{"boxId":"9851871900014_7790100P752_0","x":-62.900002,"y":6.250000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":136,"material":"","type":1,"place":200},{"boxId":"9851871900065_7790100P752_0","x":43.099998,"y":6.250000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":137,"material":"","type":1,"place":200},{"boxId":"9851871900033_7790100P752_0","x":-62.900002,"y":60.750000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":138,"material":"","type":1,"place":200},{"boxId":"9851871900077_7790100P752_0","x":43.099998,"y":60.750000,"z":138.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":139,"material":"","type":1,"place":200},{"boxId":"9851871900010_7790100P752_0","x":-62.900002,"y":60.750000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":140,"material":"","type":1,"place":200},{"boxId":"9851871900053_7790100P752_0","x":43.099998,"y":60.750000,"z":205.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":141,"material":"","type":1,"place":200},{"boxId":"9851871900057_7790100P752_0","x":-62.900002,"y":60.750000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":142,"material":"","type":1,"place":200},{"boxId":"9851871900050_7790100P752_0","x":43.099998,"y":60.750000,"z":272.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":143,"material":"","type":1,"place":200},{"boxId":"9851871900045_7790100P752_0","x":-62.900002,"y":60.750000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":144,"material":"","type":1,"place":200},{"boxId":"9851871900002_7790100P752_0","x":43.099998,"y":60.750000,"z":339.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":145,"material":"","type":1,"place":200},{"boxId":"9851871900032_7790100P752_0","x":-62.900002,"y":60.750000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":146,"material":"","type":1,"place":200},{"boxId":"9851871900060_7790100P752_0","x":43.099998,"y":60.750000,"z":406.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":147,"material":"","type":1,"place":200},{"boxId":"9851871900092_7790100P752_0","x":-62.900002,"y":60.750000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":148,"material":"","type":1,"place":200},{"boxId":"9851871900074_7790100P752_0","x":43.099998,"y":60.750000,"z":473.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":149,"material":"","type":1,"place":200},{"boxId":"9851871900072_7790100P752_0","x":-62.900002,"y":60.750000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":150,"material":"","type":1,"place":200},{"boxId":"9851871900070_7790100P752_0","x":43.099998,"y":60.750000,"z":540.500000,"width":67.000000,"height":54.500000,"length":106.000000,"weight":78.500000,"platform":"platform04","order":151,"material":"","type":1,"place":200},{"boxId":"9851873280003_7790100N372_0","x":-64.650002,"y":104.250000,"z":136.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":152,"material":"","type":1,"place":200},{"boxId":"9851873280100_7790100N372_0","x":37.849998,"y":104.250000,"z":136.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":153,"material":"","type":1,"place":200},{"boxId":"9851873280011_7790100N372_0","x":-64.650002,"y":104.250000,"z":198.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":154,"material":"","type":1,"place":200},{"boxId":"9851873280038_7790100N372_0","x":37.849998,"y":104.250000,"z":198.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":155,"material":"","type":1,"place":200},{"boxId":"9851873280082_7790100N372_0","x":-64.650002,"y":104.250000,"z":260.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":156,"material":"","type":1,"place":200},{"boxId":"9851873280022_7790100N372_0","x":37.849998,"y":104.250000,"z":260.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":157,"material":"","type":1,"place":200},{"boxId":"9851873280021_7790100N372_0","x":-64.650002,"y":104.250000,"z":322.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":158,"material":"","type":1,"place":200},{"boxId":"9851873280099_7790100N372_0","x":37.849998,"y":104.250000,"z":322.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":159,"material":"","type":1,"place":200},{"boxId":"9851873280044_7790100N372_0","x":-64.650002,"y":104.250000,"z":384.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":160,"material":"","type":1,"place":200},{"boxId":"9851873280043_7790100N372_0","x":37.849998,"y":104.250000,"z":384.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":161,"material":"","type":1,"place":200},{"boxId":"9851873280098_7790100N372_0","x":-64.650002,"y":104.250000,"z":446.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":37.000000,"platform":"platform04","order":162,"material":"","type":1,"place":200},{"boxId":"9851871900047_7790100P317_0","x":37.849998,"y":104.250000,"z":446.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":30.000000,"platform":"platform04","order":163,"material":"","type":1,"place":200},{"boxId":"9851871900029_7790100Q844_0","x":-64.650002,"y":104.250000,"z":508.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":30.000000,"platform":"platform04","order":164,"material":"","type":1,"place":200},{"boxId":"9851871900083_7790100Q844_0","x":37.849998,"y":104.250000,"z":508.000000,"width":62.000000,"height":32.500000,"length":102.500000,"weight":30.000000,"platform":"platform04","order":165,"material":"","type":1,"place":200}]';
			var jsonstr2 = '{"container_length":1192.000000,"container_width":231.800003,"container_height":260.000000,"container_max_load":null,"container_type_name":"40HQ"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>